package yxy.cherry.battle.module.record.stream;

import yxy.cherry.battle.Fighter;

import java.util.ArrayList;

/**
 * @author James
 * @date 2022/2/26 15:52
 **/
public class RecordStream37MaxHpDamage extends RecordStream{
    private Fighter target;
    private ArrayList<Long> damageList;
    private ArrayList<Long> effectList;

    public RecordStream37MaxHpDamage(Fighter target, ArrayList<Long> damageList, ArrayList<Long> effectList){
        this.target = target;
        this.damageList = damageList;
        this.effectList = effectList;
    }
    @Override
    protected void _record() {
        sb().append(37);
        sb().append("|");
        sb().append(target.getFighterPosition().code());
        sb().append("|");
        sb().append(damageList.toString());
        sb().append("|");
        sb().append(effectList.toString());
        sb().append("|");
        sb().append(target.get血量万分值());
        sb().append(";");
    }
}
